package cn.dnui_zjq823.dnuifood_16110100823.service;

import java.util.List;

import cn.dnui_zjq823.dnuifood_16110100823.bean.ResultBean;
import cn.dnui_zjq823.dnuifood_16110100823.bean.UserBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by dell on 2018/10/15.
 */

public interface UserService {
    @GET("userLogin.do")
    Call<UserBean> doLogin(@Query("username")String username,@Query("userpass")String password);
    @GET("userRegister.do")
    Call<ResultBean> doRegist(@Query("username")String username,@Query("userpass")String password,@Query("mobilenum")String mobilenum,@Query("address")String address,@Query("comment")String comment);
    @GET("getUserById.do")
    Call<UserBean> getUserById(@Query("user_id")int user_id);
    @GET("updateUserById.do")
    Call<ResultBean> updateUserById(@Query("user_id")int user_id,@Query("username")String username,@Query("userpass")String userpass,@Query("mobilenum")String mobilenum,@Query("address")String address);
}
